package com.cysyz.module.permission.stateless;

public class StateLessPermissionConstants {
    public static final String PARAM_DIGEST = "sign";
    public static final String PARAM_KEY = "app_key";
    public static final String PARTNER_CODE = "account_id";

    /** 日期格式 */
    // yyyy-MM-dd HH:mm:ss
    public static final String DATE_FORMAT_YYYYMMDDHHMMSS = "yyyy-MM-dd HH:mm:ss";
    // yyyy-MM-dd HH:mm:ss
    public static final String DATE_FORMAT_YYYYMMDDHHMMSSSSS = "yyyy-MM-dd HH:mm:ss.SSS";

    /** 字符集 */
    // UTF-8
    public static final String CHARSET_UTF8 = "UTF-8";
    // GBK
    public static final String CHARSET_GBK = "GBK";

    /** 数据格式 */
    // XML
    public static final String DATA_PROTOCOL_TYPE_XML = "xml";
    // JSON
    public static final String DATA_PROTOCOL_TYPE_JSON = "json";

    /** 签名方式 */
    // MD5
    public static final String SIGN_TYPE_MD5 = "md5";

    /** 系统参数名 */
    // method
    public static final String SYS_PARAM_METHOD = "method";
    // format
    public static final String SYS_PARAM_FORMAT = "format";
    // session
    public static final String SYS_PARAM_SESSION = "session";
    // timestamp
    public static final String SYS_PARAM_TIMESTAMP = "timestamp";
    // app_key
    public static final String SYS_PARAM_APP_KEY = "app_key";
    // sign
    public static final String SYS_PARAM_SIGN = "sign";

    // json contentType
    public static final String CONTENT_TYPE_JSON = "application/json;charset=UTF-8";

    // xml contentType
    public static final String CONTENT_TYPE_XML = "application/xml;charset=UTF-8";
}
